﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Edit.Master" AutoEventWireup="true"
    CodeBehind="SingleWellExame.aspx.cs" Inherits="Web.Views.SingleWellManage.SingleWellExame" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../Javascript/UserControls.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="button" runat="server">
    <div class="toolbar2">
        <button type="button" class="sexybutton" runat="server" id="btnAgree" visible="false"
            onserverclick="btnAgree_Click">
            <span><span><span class="edit">同意</span></span></span></button>
        <button type="button" class="sexybutton" id="btnDisAgree" runat="server" visible="false"
            onserverclick="btnDisAgree_Click">
            <span><span><span class="transfer">不同意</span></span></span></button>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="edit" runat="server">
    <div style="margin: 10px; margin-right: 10px;">
        <fieldset>
            <legend>元数据 </legend>
            <fieldset>
                <table cellpadding="0" cellspacing="0" width="100%" class="editTable">
                    <tr>
                        <th style="width: 12%">
                            文件名
                        </th>
                        <td colspan="4">
                            <asp:TextBox runat="server" ID="txtDatafileName" Width="100%" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th style="width: 12%">
                            施工措施
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWorkMode" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            开工日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtBEGINDATE" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            完工日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtFINISHDATE" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th style="width: 12%">
                            A4
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtA4" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            A3
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtA3" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th style="width: 12%">
                            A0
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtA0" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            井别
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWellType" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                            井号
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWellCode" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                        </th>
                        <td>
                        </td>
                    </tr>
                    <tr>
                               <th>
                            类别
                        </th>
                        <td>
                            <asp:TextBox ID="txtCategory" Enabled="false" runat="server" Width="160px"></asp:TextBox>
                        </td>
                        <th>
                            类别明细
                        </th>
                        <td>
                            <asp:TextBox runat="server" Enabled="false" ID="txtCateGoryDetail" Width="160px"></asp:TextBox>
                        </td>
                        <th>
                        </th>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            开钻日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtBeginWorkDate" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                            完钻日期
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtFinishWorkDate" Width="180px" class="easyui-datebox "
                                editable="false" Enabled="false"></asp:TextBox>
                        </td>
                        <th>
                            完钻深度
                        </th>
                        <td>
                            <asp:TextBox runat="server" ID="txtWellDepth" Width="160px" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <fieldset>
                <legend>详细信息 </legend>
                <div>
                    <ep:EPGridView ID="gv_SingleWellDetail" runat="server" Width="100%" AutoGenerateColumns="False"
                        dataSortExpression="" EnableEmptyContentRender="True" EnableModelValidation="True"
                        DataKeyNames="DetailID" Goto="0" GvPageCount="0" ShowCheckBox="False">
                        <Columns>
                            <asp:BoundField HeaderText="文件名" DataField="detailname" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="50%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" Width="50%"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="A4" DataField="A4" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="A3" DataField="A3" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="A0" DataField="A0" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField Visible="false" DataField="DetailID" />
                        </Columns>
                        <PagerTemplate>
                            <asp:Table runat="server">
                                <asp:TableRow runat="server">
                                    <asp:TableCell runat="server">
                                        <asp:Label runat="server" ID="lbPage" Style="margin-right: 50px;">总共有几页</asp:Label>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="First" ID="btnFirst"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page+.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Prev" ID="btnPrev"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page+-.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Next" ID="btnNext"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page-+.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Last" ID="btnLast"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page-.png"></asp:Image>
                                        </asp:LinkButton>
                                        <asp:TextBox runat="server" Height="15px" Width="30px" ID="txtPageInex" onkeydown="enteryKeyEvent(this);"></asp:TextBox>
                                        <asp:LinkButton runat="server" CommandName="goto" ID="btnGoto"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/go.png"></asp:Image>
                                        </asp:LinkButton>
                                    </asp:TableCell>
                                </asp:TableRow>
                            </asp:Table>
                        </PagerTemplate>
                    </ep:EPGridView>
                </div>
            </fieldset>
            <fieldset>
                <legend>附件信息</legend>
                <ep:EPGridView ID="gv_AttachMent" runat="server" Width="100%" AutoGenerateColumns="False"
                    dataSortExpression="" EnableEmptyContentRender="True" EnableModelValidation="True"
                    Goto="0" GvPageCount="0" ShowCheckBox="False" DataKeyNames="attachmentid">
                    <Columns>
                        <asp:HyperLinkField DataTextField="attachmentname" HeaderText="文件名" DataNavigateUrlFields="attachmentid"
                            DataNavigateUrlFormatString="~/WebDoc/WebDoc.aspx?AttachmentID={0}&amp;AttachmentDBHelperString=SingleWell"
                            Target="_blank">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:HyperLinkField>
                        <asp:BoundField DataField="uploadtime" DataFormatString="{0: yyyy-MM-dd}" HeaderText="上传时间">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="文件大小" DataField="attachmentsize" HeaderStyle-Width="10%"
                            ItemStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="attachmentid" DataField="attachmentid" HeaderStyle-Width="10%"
                            ItemStyle-HorizontalAlign="Center" Visible="False">
                            <HeaderStyle Width="10%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                    <PagerTemplate>
                        <asp:Table runat="server">
                            <asp:TableRow runat="server">
                                <asp:TableCell runat="server">
                                    <asp:Label runat="server" ID="lbPage" Style="margin-right: 50px;">总共有几页</asp:Label>
                                    <asp:LinkButton runat="server" CommandName="Page" CommandArgument="First" ID="btnFirst"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page+.png"></asp:Image>
                                    
                                    </asp:LinkButton>
                                    <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Prev" ID="btnPrev"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page+-.png"></asp:Image>
                                    
                                    </asp:LinkButton>
                                    <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Next" ID="btnNext"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page-+.png"></asp:Image>
                                    
                                    </asp:LinkButton>
                                    <asp:LinkButton runat="server" CommandName="Page" CommandArgument="Last" ID="btnLast"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/page-.png"></asp:Image>
                                    
                                    </asp:LinkButton>
                                    <asp:TextBox runat="server" Height="15px" Width="30px" ID="txtPageInex" onkeydown="enteryKeyEvent(this);"></asp:TextBox>
                                    <asp:LinkButton runat="server" CommandName="goto" ID="btnGoto"><asp:Image runat="server" ImageUrl="~/Images/NewGrid/go.png"></asp:Image>
                                    
                                    </asp:LinkButton>
                                </asp:TableCell>
                            </asp:TableRow>
                        </asp:Table>
                    </PagerTemplate>
                </ep:EPGridView>
            </fieldset>
            <fieldset>
                <legend>审批意见</legend>
                <div>
                    <asp:TextBox runat="server" ID="txtCommsg" TextMode="MultiLine" Height="100px"></asp:TextBox>
                </div>
            </fieldset>
        </fieldset>
    </div>
    <div>
        <asp:HiddenField ID="hdfCurrentStatusID" runat="server" />
        <asp:HiddenField ID="hdfRecordID" runat="server" />
    </div>
</asp:Content>
